bitkeeper revision 1.1302 (42603cdb-AbHd2ci9qddxFzBGr4xqA)
authorchrisw@osdl.org[iap10] <chrisw@osdl.org[iap10]>
Fri, 15 Apr 2005 22:14:51 +0000 (22:14 +0000)
committerchrisw@osdl.org[iap10] <chrisw@osdl.org[iap10]>
Fri, 15 Apr 2005 22:14:51 +0000 (22:14 +0000)
[PATCH] add cscope support to xen Makefile

Add cscope support to xen Makefile.  While at it, refactor a bit so
etags, ctags, and cscope use same method to generate file list.

Signed-off-by: Chris Wright <chrisw@osdl.org>
BitKeeper/etc/logging_ok
xen/Makefile

index 1772d0abab44b23f8c4b872b5992ddd96c2444a9..a0cec812e65d15fc845e959467906a06fa47e9f2 100644 (file)
@@ -15,6 +15,7 @@ br260@laudney.cl.cam.ac.uk
 bren@anvil.research
 bren@br260.wolfson.cam.ac.uk
 ccoffing@novell.com
+chrisw@osdl.org
 cl349@arcadians.cl.cam.ac.uk
 cl349@firebug.cl.cam.ac.uk
 cl349@freefall.cl.cam.ac.uk
index 57a150d18a6366e5cb7cf57872e3198be261c014..c9197bc5827c8b48cc11b63b75a71eb8eab2e634 100644 (file)
@@ -106,15 +106,18 @@ include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s
 .PHONY: default debug install dist clean delete-unfresh-files TAGS tags
 
 SUBDIRS = arch/$(TARGET_ARCH) common drivers 
+define all_sources
+    ( find include/asm-$(TARGET_ARCH) -name SCCS -prune -o -name '*.h' -print; \
+      find include -type d -name SCCS -prune -o \( -name "asm-*" -o \
+            -name config \) -prune -o -name '*.h' -print; \
+      find $(SUBDIRS) -name SCCS -prune -o -name '*.[chS]' -print )
+endef
 TAGS: 
-       ( find include/asm-$(TARGET_ARCH) -name '*.h'; \
-         find include -type d \( -name "asm-*" -o -name config \) -prune -o \
-               -name '*.h' -print; \
-         find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | etags -
+       $(all_sources) | etags -
 tags: 
-       ( find include/asm-$(TARGET_ARCH) -name '*.h'; \
-         find include -type d \( -name "asm-*" -o -name config \) -prune -o \
-               -name '*.h' -print; \
-         find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | xargs ctags
+       $(all_sources) | xargs ctags
+cscope: 
+       $(all_sources) > cscope.files
+       cscope -k -b -q
 MAP:
        nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map